package com.he.listener;

import com.he.entity.Hotel;
import com.he.event.EventListener;
import com.he.event.constact.EventConstact;

public class HotelEventListener implements EventListener<Hotel> {
    @Override
    public String getEventType() {
        return EventConstact.EVENT_HOTEL_INSERT;
    }

    @Override
    public void eventHandler(Hotel msg) {
        System.out.println("系统服务，接收到酒店新增的消息：" + msg);
    }
}
